package com.exam.common.vo.page;

public class SystemContext {
	//ThreadLocal 线程局部变量
	//http://blog.csdn.net/lufeng20/article/details/24314381
	private static ThreadLocal<Integer> offset = new ThreadLocal<Integer>();
	private static ThreadLocal<Integer> pageSize = new ThreadLocal<Integer>();
	public static Integer getOffset() {
		return offset.get();
	}
	public static void setOffset(Integer _offset) {
		offset.set(_offset);
	}
	public static void removeOffset(){
		offset.remove();
	}
	
	public static Integer getPageSize() {
		return pageSize.get();
	}
	public static void setPageSize(Integer _pageSize) {
		pageSize.set(_pageSize);
	}
	public static void removePageSize(){
		pageSize.remove();
	}
	
}